<?php
namespace Config;

use Exception;

class INI extends Base {
    public function __construct($fileName = null) {
        $data = array();

        if ($fileName) {
            if (file_exists($fileName)) {
                $data = parse_ini_file($fileName, true);
            } else {
                throw new Exception("File {$fileName} not found");
            }
        }

        parent::__construct($data);
    }
}
